package com.cww.study.po;

import com.cww.study.mybatis.UUIdGenId;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @program: cww_project
 * @description:
 * @author: 陈英俊
 * @create: 2022-03-08 13:46
 */
@Data
@Table(name = "NEWS")
public class News {

    @Id
    @Column(name = "ID")
    @KeySql(genId = UUIdGenId.class)
    private String id;

    @Column(name = "TITLE")
    private String title;

    @Column(name = "CONTENT")
    private String content;

    @Column(name = "SOURCE")
    private String source;

    @Column(name = "PUBLISH_TIME")
    private String publishTime;//发布时间

    @Column(name = "TYPE")
    private String type; // 各类新闻

    @Column(name = "STATE")
    private String state; // 启用禁用

    @Column(name = "DELETE_FLAG")
    private String deleteFlag;

    @Column(name = "CREATE_TIME")
    private String createTime;
}
